<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <title>主治医生系统</title>
    <style>
        a:link,a:visited{
            text-decoration: none;
        }
        a:hover,a:active{
            text-decoration: underline;
            color: red;
        }


        #main_div{
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0%;
            left: 0%;
            background-color: #ffac50;
        }
        #top{
            position: absolute;
            width: 100%;
            height: 15%;
        }
        #content{
            position: absolute;
            width: 100%;
            height: 70%;
            top: 15%;
        }
        #bottom{
            position: absolute;
            width: 100%;
            height: 15%;
            top: 85%;
        }
        #title{
            position: absolute;
            width: 50%;
            height: 100%;
            left: 25%;
            text-align: center;
            line-height: 80px;
            font-size: 70px;
            color: crimson;
        }
        #logout{
            position: absolute;
            width: 20%;
            height: 30%;
            left: 80%;
            top: 70%;
            font-size: 20px;
            color: brown;
            text-align: center;
        }
        #kind{
            position: absolute;
            width: 40%;
            height: 25%;
            left: 30%;
            top: 75%;
            font-size: 16px;
            color: blue;
            text-align: center;
        }
        .patient{
            width: 100%;
            height: 8%;
            position: relative;
        }
        #page{
            width: 100%;
            height: 10%;
            position: absolute;
            top: 90%;
        }
        #page_content{
            width: 40%;
            height: 100%;
            left: 30%;
            position: absolute;
            text-align: center;
            line-height: 50px;
        }
        .patient_content{
            border: solid black 1px;
            float: left;
            width: 8%;
            height: 100%;
            position: relative;
            line-height: 40px;
            text-align: center;
        }
    </style>
</head>
<body>



${requestScope.page["pageSize"] }
    <div id="main_div">
        <div id="top">
            <div id="title">主&nbsp;治&nbsp;医&nbsp;生&nbsp;系&nbsp;统</div>
            <div id="kind">(病人列表)</div>
            <div id="logout">${doctor.userName }医生你好&nbsp;&nbsp;<a href="#">退出登录</a></div>
        </div>
        <div id="content">
        	<c:forEach items="${page.list}" var="c" varStatus="vs">
        	
            <div class="patient">
                <div class="patient_content">住院号：</div>
                <div class="patient_content">${c.patients_number }</div>
                <div class="patient_content">姓名：</div>
                <div class="patient_content">${c.patients_name }</div>
                <div class="patient_content">性别：</div>
                <div class="patient_content">${c.patients_sex }</div>

                <div class="patient_content"><a href="#">病人详细病例</a></div>
                <div class="patient_content"><a href="#">术前检查申请</a></div>
                <div class="patient_content"><a href="#">术前检查报告</a></div>
                <div class="patient_content"><a href="#">手术申请</a></div>
                <div class="patient_content"><a href="#">手术申请报告</a></div>
                <div class="patient_content"><a href="#">出院申请</a></div>
            </div>
           </c:forEach>
            <div id="page">
                <div id="page_content">
                    <a href="${pageContext.request.contextPath}/LoginController/${doctor.technical }?epage=1">首页</a>
      				<a href="${pageContext.request.contextPath}/LoginController/${doctor.technical }?epage=${page.isFirstPage?page.pageNum:page.prePage}">上一页</a>
     				<a href="${pageContext.request.contextPath}/LoginController/${doctor.technical }?epage=${page.isLastPage?page.pageNum:page.nextPage}">下一页</a>
      				<a href="${pageContext.request.contextPath}/LoginController/${doctor.technical }?epage=${page.pages}">尾页</a>
                </div>
            </div>
        </div>
        <div id="bottom"></div>
    </div>
</body>
</html>
